package com.project.personalfundmanager.server;

import java.util.ArrayList;
import java.util.List;

public class MailerDemo
{
	public static void main( String[] args )
	{
		Mailer mailer = new Mailer();

		List<String> toAddress = new ArrayList<String>();
		toAddress.add( "paras.dattani@gmail.com" );

		List<String> attachments = new ArrayList<String>();
		attachments.add( "C:\\SparkSeed.js" );
		attachments.add( "C:\\ROCRAsf.js" );

		mailer.sendMail( toAddress, "Trail", "See thing message wil come \n there", null, new MailerCallback()
		{
			public void onSent( boolean success, Exception ex )
			{
				if ( success )
					System.out.println( "Succedded" );
				else
					ex.printStackTrace();
			}
		} );
	}
}
